package com.hedl.classroom.feignclient;

import com.hedl.classroom.feignclient.impl.SearchServiceClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Big Watermelon
 * @description
 * @date 2023/11/27/1:09
 */
@FeignClient(value = "search-api",fallbackFactory = SearchServiceClientFallbackFactory.class)
public interface SearchServiceClient {

    @PostMapping("/search/index/course")
    public Boolean add(@RequestBody CourseIndex courseIndex);
}
